package cn.edu.javaweb.service;

import java.util.List;

import cn.edu.javaweb.javabean.Examine;
import cn.edu.javaweb.utils.DBUtil;

public class AdminAddNewsService {
	public int getAdd(String title,String pricture,String content){
		DBUtil db;
		
		db=new DBUtil(); //建创对象 搭桥配置初始化
		String sql="insert into news(title,pricture,content) values('"+title+"','"+pricture+"','"+content+"')";   //写入sql语句
//			System.out.println(sql);
		int result=db.update(sql);
		
		return result;
	}

}
